. .\PSHamcrest.ps1

. .\Calculator.Example.ps1

Function Test_Add_TwoInts_Sum
{
    $total = Add 1 3
    AssertThat $total (EqualTo 4)
}

Function Test_Add_TwoNegInts_Sum
{
    $total = Add -1 -3
    AssertThat $total (EqualTo -4)
}

Function Test_Subtract_TwoInts_Difference
{
    $difference = Subtract 5 0
    AssertThat $difference (EqualTo 5)
}

Function Test_Subtract_OnePositiveOneNegativeInt_Difference
{
    $difference = Subtract 5 -4
    AssertThat $difference (EqualTo 9)
}

Function Test_Multiply_TwoInts_Product
{
    $product = Multiply 5 4
    AssertThat $product (EqualTo 20)
}

Function Test_Multiply_OnePositiveOneNegative_Product
{
    $product = Multiply 5 4
    AssertThat $product (EqualTo 20)
}

Function Test_Divide_TwoInts_Quotient
{
    $quotient = Divide 21 7
    AssertThat $quotient (EqualTo 3)
}

ExecuteTests $args[0]

# vim: ft=ps1
